package com.custom.base.util

import android.widget.Toast
import com.custom.base.manager.SDActivityManager

object ToastUtil {
    fun toast(str:String, duration:Int = Toast.LENGTH_SHORT){
        if (!SDActivityManager.instance.isEmpty) {
            Toast.makeText(SDActivityManager.instance.lastActivity, str, duration).show()
        }
    }
}